﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BorsoMediaPlayerEngine.utilitarios
{
    public class UtilListBox<T>
    {
        public static List<T> clonaSelectedItems(ListBox.SelectedObjectCollection listaOrigem)
        {
            List<T> listaDestino = new List<T>();
            foreach (T elemento in listaOrigem)
            {
                listaDestino.Add(elemento);
            }
            return listaDestino;
        }
    }
}
